﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Devotit.Umbraco.MvcBridge
{
    public class MvcBridgeView<TModel> : WebViewPage<TModel>, IMvcBridgeView
    {
        public dynamic Node{get;set;}
        public dynamic Parameter{get;set;}

        protected override void SetViewData(ViewDataDictionary viewData)
        {
            base.SetViewData(viewData);
            if (viewData.ContainsKey("UmbracoNode")) {
                Node = viewData["UmbracoNode"];
            }
            if (viewData.ContainsKey("UmbracoParameter")) {
                Node = viewData["UmbracoParameter"];
            }
        }

        public override void Execute()
        {
        }

    }
}